<template>
    <LayIcon :type="icon" class="icon"></LayIcon>
</template>

<script setup lang="ts">
import { LayIcon } from '@layui/icons-vue';
import type { IconSchema } from 'aoe';
import { computed } from 'vue';

const props = defineProps<IconSchema>();

const icon = computed(() => (props.name ? 'layui-icon-' + props.name : undefined));
</script>

<style scoped></style>
